package cn.learn.service.stat.impl;

import cn.learn.dao.stat.StatDao;
import cn.learn.service.stat.StatService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

@Service
public class StatServiceImpl implements StatService {

    @Autowired
    private StatDao statDao;

    @Override
    public List<Map> getFactoryData(String companyId) {
        List<Map> factoryData = statDao.getFactoryData(companyId);
        return factoryData;
    }

    @Override
    public List<Map> getSellData(String companyId) {
        List<Map> sellData = statDao.getSellData(companyId);
        return sellData;
    }

    @Override
    public List<Map> getonlineData(String companyId) {
        List<Map> maps = statDao.getonlineData(companyId);
        return maps;
    }

    @Override
    public List<Map> getLoginData(String companyId) {
        List<Map> list= statDao.getLoginData(companyId);
        return list;
    }

    @Override
    public List<Map> getPriceData(String companyId) {
        List<Map> list=statDao.getPriceData(companyId);
        return list;
    }
}
